PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


DrawThemeListBoxFrame

Draws a list box frame.

pascal OSStatus DrawThemeListBoxFrame (
                     const Rect *inRect,
                     ThemeDrawState inState);
inRect
A pointer to a structure of type Rect . Before calling DrawThemeListBoxFrame , set the rectangle to the position around which to draw the list box frame, in local coordinates.
inState
A value of type ThemeDrawState . Pass a constant specifying the state in which to draw the list box frame; see Theme Draw State Constants . The frame can be drawn as active or inactive; passing kThemeStatePressed produces an error.
function result
A result code; see Result Codes .
DISCUSSION

The DrawThemeListBoxFrame function draws a theme-compliant list box frame. The frame is a maximum of 2 pixels thick and is drawn outside the specified rectangle. To ensure that you get an appropriate focus ring for your list box, you should pass the same rectangle that you use with the DrawThemeListBoxFrame function to the function DrawThemeFocusRect .

VERSION NOTES

Available with Appearance Manager 1.0 and later.


© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)